import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { IndexComponent} from './index.component';

const routes: Routes = [
  { path: '', component: IndexComponent,
    children: [
      { path: 'system', loadChildren: '../system/system.module#SystemModule' },
      { path: '**', redirectTo: '/system/settings', pathMatch: 'full' },
    ]

  }
];
@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [
    RouterModule
  ]
})
export class IndexRoutingModule { }